poem_str = "1234\t 123\t 12345\t\n 12345\t\t"
print(poem_str)

# 拆分字符串
poem_list = poem_str.split()  # 把大字符串拆分成一个列表
print(poem_list)

# 合并字符串
result = " ".join(poem_list)  #把列表合并成一个字符串
print(result)